import request from "@/plugins/request";

export function AccountLogin(data) {
  return request({
    url: "/loginCenter/login",
    method: "post",
    data,
  });
}

export function AccountRegister(data) {
  return request({
    url: "/api/register",
    method: "post",
    data,
  });
}

// 注册公司
export function UserAndCompanyRegister(data) {
  return request({
    url: "/global/register/userAndCompanyRegister",
    method: "post",
    data,
  });
}

// 找回密码
export function ForgotPassword(data) {
  return request({
    url: "/global/register/forgotPassword",
    method: "post",
    data,
  });
}

// 获取用户状态
export function GetLoginAfterStatus(data) {
  return request({
    url: "/user/pc/home/myInfo/getLoginAfterStatus",
    method: "post",
    data,
  });
}

// 用户注册后绑定企业
export function UserJoinCompany(data) {
  return request({
    url: "/user/pc//home/myInfo/joinCompany",
    method: "post",
    data,
  });
}

// 用户手机号是否注册
export function MobileIsExists(data) {
  return request({
    url: "/global/base/mobileIsExists",
    method: "post",
    data,
  });
}


// // 获取当前登录用户权限
// export function GetMyAuthAuth(data={}) {
//     return request({
//       url: "/platform/my/getMyAuthAuth",
//       method: "post",
//       data,
//     });
//   }
  
